using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevTroublereportinfoTList, table list:dev_troublereportinfo_t 
	/// </summary>
	internal class DevTroublereportinfoTList : BaseWritableEntities<DevTroublereportinfoT>, IDevTroublereportinfoTList
	{
		private DevTroublereportinfoTQueryDAO _queryDAO;
		private DevTroublereportinfoTWritingDAO _writeDAO;

		public DevTroublereportinfoTList(DevTroublereportinfoTQueryDAO queryDao, DevTroublereportinfoTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevTroublereportinfoT,table items:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevTroublereportinfoT> GetDevTroublereportinfoTAllItems()
		{
			return _queryDAO.GetDevTroublereportinfoTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevTroublereportinfoT,table items:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevTroublereportinfoT> GetDevTroublereportinfoTItemsById(int id)
		{
			return _queryDAO.GetDevTroublereportinfoTItemsById(id);
		}

		/// <summary>
		/// 根据jobId，获取所有DevTroublereportinfoT,table items:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevTroublereportinfoT> GetDevTroublereportinfoTItemsByJobId(int jobId)
		{
			return _queryDAO.GetDevTroublereportinfoTItemsByJobId(jobId);
		}

		/// <summary>
		/// 增加一行DevTroublereportinfoT,table item:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevTroublereportinfoT(DevTroublereportinfoT item)
		{
			return this._writeDAO.AddDevTroublereportinfoT(item);
		}

		/// <summary>
		/// 增加多行DevTroublereportinfoT,table items:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevTroublereportinfoTs(DevTroublereportinfoT[] items)
		{
			return this._writeDAO.AddDevTroublereportinfoTs(items);
		}

		/// <summary>
		/// 更新一行DevTroublereportinfoT,table item:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevTroublereportinfoT(DevTroublereportinfoT item)
		{
			return this._writeDAO.UpdateDevTroublereportinfoT(item);
		}

		/// <summary>
		///  更新多行DevTroublereportinfoT,table items:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevTroublereportinfoTs(DevTroublereportinfoT[] items)
		{
			return this._writeDAO.UpdateDevTroublereportinfoTs(items);
		}

		/// <summary>
		/// 删除一行DevTroublereportinfoT,table item:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevTroublereportinfoT(DevTroublereportinfoT item)
		{
			return this._writeDAO.DeleteDevTroublereportinfoT(item);
		}

		/// <summary>
		///  删除多行DevTroublereportinfoT,table items:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevTroublereportinfoTs(DevTroublereportinfoT[] items)
		{
			return this._writeDAO.DeleteDevTroublereportinfoTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevTroublereportinfoT,table entity:dev_troublereportinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevTroublereportinfoTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevTroublereportinfoTByIds(ids);
		}

	}
}
